package com.example.sharpshopdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.sharpshopdemo.entity.Dict;
import com.example.sharpshopdemo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    @Select("SELECT * FROM dict WHERE display LIKE CONCAT('%', #{keyword}, '%')")
    List<Dict> selectDictsByNameLike(@Param("keyword") String keyword);
}
